#!/bin/sh
modprobe uio
insmod /data/dpdk-stable-18.11.2/build/kmod/igb_uio.ko
insmod /data/dpdk-stable-18.11.2/build/kmod/rte_kni.ko  kthread_mode=multiple

echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
mount -t hugetlbfs nodev /mnt/huge

/data/dpdk-stable-18.11.2/usertools/dpdk-devbind.py -b igb_uio 0000:01:00.0
/data/dpdk-stable-18.11.2/usertools/dpdk-devbind.py -b igb_uio 0000:01:00.1

/data/dpdk-stable-18.11.2/usertools/dpdk-devbind.py --status

declare -x RTE_SDK="/data/dpdk-stable-18.11.2"
declare -x RTE_TARGET="build"
export EXTRA_CFLAGS="-O0 -g"
